package com.zzh.partnersys.im.message.request;

import com.zzh.partnersys.im.message.Message;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ChatRequestMessage extends Message {
    private String content;
    private Long uid;
    private Long fromUid;

    public ChatRequestMessage() {
    }

    public ChatRequestMessage(Long fromUid, Long toUid, String content) {
        this.fromUid = fromUid;
        this.uid = toUid;
        this.content = content;
        this.setMessageType(ChatRequestMessage);
    }

    @Override
    public int getMessageType() {
        return ChatRequestMessage;
    }

    @Override
    public void setMessageType(int messageType) {
        super.setMessageType(messageType);
    }
}
